def mul(*number):
    sum = 1
    if number == " ":
        return None
    for num in number:
        sum *= num

    return sum

# 测试
print('mul(5) =', mul(5))
print('mul(5, 6) =', mul(5, 6))
print('mul(5, 6, 7) =', mul(5, 6, 7))
print('mul(5, 6, 7, 9) =', mul(5, 6, 7, 9))
if mul(5) != 5:
    print('mul(5)测试失败!')
elif mul(5, 6) != 30:
    print('mul(5, 6)测试失败!')
elif mul(5, 6, 7) != 210:
    print('mul(5, 6, 7)测试失败!')
elif mul(5, 6, 7, 9) != 1890:
    print('mul(5, 6, 7, 9)测试失败!')
else:
    try:
        mul()
        a = 2/0
        print('mul()测试成功!')
    except TypeError:
        print('出现异常!')
    except Exception:
        print("全局异常！")
    finally:
        print("finally msg")
        

print("123123")
        
